package org.ushio.nchu_22201406.Feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.ushio.common_module.entity.Bill;

import java.util.List;

@FeignClient(name = "nchu-22201408",url = "http://localhost:8081")
public interface BillClient {
    @PostMapping(value = "/bills/create")
    ResponseEntity<Bill> createBill(@RequestBody Bill bill);
}